---
apiVersion: v1
kind: Secret
metadata:
  name: cloud-data-discoverer
  namespace: d8-cloud-provider-vsphere
  {{- include "helm_lib_module_labels" (list . (dict "app" "cloud-data-discoverer")) | nindent 2 }}
type: Opaque
data:
{{- with .Values.cloudProviderVsphere.internal.providerClusterConfiguration.provider }}
  server: {{ .server | b64enc | quote }}
  username: {{ .username | b64enc | quote }}
  password: {{ .password | b64enc | quote }}
  insecure: {{ .insecure | toString | b64enc | quote }}
{{- end }}
